package com.huawei.cyc.window;

import javax.swing.*;
import java.awt.*;

public class SockScissorPaperWindow extends JFrame {
    private JPanel jPanel;
    private JLabel userLabel;
    private JButton startButton;
    private JButton stopButton;

    public SockScissorPaperWindow(String title ) throws HeadlessException{
        super(title);
        init();
    }

    private void init(){
        
        setLocationRelativeTo(null);
        setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);

        jPanel =new JPanel();
        userLabel =new JLabel("玩家姓名");
        startButton = new JButton("开始游戏");

        jPanel.add(userLabel);
        jPanel.add(startButton);

        setContentPane(jPanel);

    }
}
